const { ipcRenderer, contextBridge } = require('electron');

const closeWin = () => {
    ipcRenderer.invoke('send-close-wind');
};

contextBridge.exposeInMainWorld('mySubApi', {
    closeWin
});